import request from "@/utils/request";
// 地区统计
export function getAreaData(data) {
  return request({
    url: "/trade/home/page/regional/statistics",
    method: "get",
    params: data
  });
}
// 数据简报
export function getData(data) {
  return request({
    url: "/trade/home/page/data/presentation",
    method: "get",
    params: data
  });
}
// 渠道统计
export function getFromData(data) {
  return request({
    url: "/trade/home/page/channel/statistics",
    method: "get",
    params: data
  });
}
// 第一排
export function getNumber(data) {
  return request({
    url: "/trade/home/page/frist/statistics",
    method: "get",
    params: data
  });
}
// 等级
export function getGradeData(data) {
  return request({
    url: "/trade/home/page/grade/statistics",
    method: "get",
    params: data
  });
}
// 订单分析
export function getOrderData(data) {
  return request({
    url: "/trade/home/page/order/presentation",
    method: "get",
    params: data
  });
}
// 获取公告
export function getNotice(data) {
  return request({
    url: '/system/notice/all/list',
    method: 'get',
    params: data
  })
}
// 公告不提醒
export function knower2(id) {
  return request({
    url: '/system/notice/update/notice/user/'+id,
    method: 'get'
  })
}
// 预约不提醒
export function know6(id) {
  return request({
    url: '/trade/customer/remind/'+id,
    method: 'put'
  })
}

// 获取预约列表
export function reserve() {
  return request({
    url: '/trade/customer/remind/list/reserve',
    method: 'get'
  })
}

// 修改预约列表状态
export function edreserve(id) {
  return request({
    url: '/trade/customer/remind/edit/' + id,
    method: 'put',
  })
}
